package com.example.service;

import com.example.pojo.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "mall-elasticsearch")
public interface EsItemService {

    @PostMapping("/esItem/save")
    public void save(Item item);

    @PostMapping("/esItem/update")
    public void update(Item item);

    @DeleteMapping("/esItem/deleteById")
    public void deleteById(Long id);
}
